<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\admin\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
		'nickname' => 'require',
		'username' => 'require',
		// 'password' => ['require', 'regex' => '/^[\w|\d]\w+/'],
    ];

    protected $message = [
		'nickname.require' => '请输入用户昵称',
		'username.require' => '请输入用户账号',
		// 'password.regex'   => '密码格式错误',
    ];

}